package com.zone.module_base.fragment

import android.util.Log
import com.zone.core.base.BaseBindingViewModelFragment
import com.zone.core.helper.PermissionHelper
import com.zone.module_base.databinding.FragmentTestFunctionBinding
import com.zone.module_base.BaseApp
import com.zone.module_base.databinding.FragmentTestPermissionBinding
import com.zone.module_base.databinding.FragmentTestVideoBinding
import com.zone.module_base.viewmodel.TestFunctionViewModel
import com.zone.module_base.viewmodel.TestVideoViewModel

class TestPermissionFragment :
    BaseBindingViewModelFragment<FragmentTestPermissionBinding, TestFunctionViewModel>() {
    override fun inject() {
        BaseApp.appComponent.inject(this)
    }

    override fun onEvent(eventId: Int) {
        super.onEvent(eventId)

        requestPermissions(PermissionHelper.permissionsMultiple, onGranted = {
            //权限授予
            Log.d("TAG", "onEvent: 权限授予")
        })
    }

}